<template>
  <div>
    <!-- 关于我们 -->
    <div class="aboutTop">
      <h2>关于我们</h2>
      <div class="inlineBlue"></div>
      <p>专注互联网信息化服务</p>
    </div>
    <div class="aboutCenterTitle">
      <div class="lineLeft"></div>
      <a
        href="http://localhost:8888/#/CompanyIntro"
        class="aboutIntro change"
        @click="change1"
        >公司简介</a
      >
      <a
        href="http://localhost:8888/#/CompanyCulture"
        class="aboutCulture"
        @click="change2"
        >企业文化</a
      >
      <div class="lineRight"></div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
        // t:1,
    };
  },
  created() {
    this.t = window.sessionStorage.getItem("lastnumber");
    // console.log(this.t);
  },
  methods: {
    change1() {
      this.t = 1;
      window.sessionStorage.setItem("lastnumber", this.t);
      console.log(this.t)
    //   this.$router.push({path: '/CompanyIntro'})
    },
    change2() {
      this.t = 2;
      window.sessionStorage.setItem("lastnumber", this.t);
      console.log(this.t)
    //   this.$router.push({path: 'CompanyCulture'})
    },
  },
};
</script>
<style lang="scss">

</style>